package com.github.satant.job.biz.impl;

import com.github.satant.job.biz.StTaskBiz;
import com.github.satant.job.common.biz.impl.BaseBizImpl;
import com.github.satant.job.entity.StTask;
import com.github.satant.job.mapper.StTaskMapper;
import java.time.LocalDate;
import java.time.LocalDateTime;
import org.springframework.stereotype.Service;

/**
 * 任务表
 *
 * @author dear_satant
 * @email 446269825@qq.com
 * @date 2018-06-26 21:34:06
 */
@Service
public class StTaskBizImpl extends BaseBizImpl<StTaskMapper,StTask> implements StTaskBiz {

    @Override
    public StTask insertSelective(StTask entity) {
        return super.insertSelective(entity);
    }

    public void setDefault(StTask entity){
        entity.setStatus(1);
        entity.setCreateTime(LocalDateTime.now());
    }
}